#include"Search.hpp"
#include<iostream>
#include<string>

const std::string Input = "data/raw_html/raw.txt";

int  main()
{
    ns_searcher::Searcher *s = new ns_searcher::Searcher();
    s->InitSearcher(Input);

    std::string quarry;
    std::string json_string;
    while (true)
    {
        std::cout<<"please input# "<<std::endl;
        std::cin>>quarry;
        s->Search(quarry,&json_string);
        std::cout << json_string << std::endl;
    }

    return 0;
}